package com.kaigejava.demo.business.service.grab;

import java.net.MalformedURLException;

/**
 * @Author: kaigejava
 * @Date: 2023/11/9 16:19
 * @Description:
 **/

public interface IGrabService {

    /**
     * 抓取直播弹幕方法
     * @param roomId        直播房间号
     * @param timestamp     时间戳
     */
    void grab(String roomId,long timestamp) throws Exception;

    /**
     * 关闭连接
     * @param roomId            直播房间号
     * @throws Exception          异常
     */
    void close(String roomId) throws Exception;


}
